
package com.eyedog.video.NotifyDialog;

import com.eyedog.library.mvp.BasePresenter;
import com.eyedog.video.entity.NotifyEntity;
import com.eyedog.video.http.ICallback;

public class NotifyPresenter extends BasePresenter<constract.INotifyView, constract.INotifyModel> {

    public NotifyPresenter(constract.INotifyView iNotifyView, constract.INotifyModel iNotifyModel) {
        super(iNotifyView, iNotifyModel);
    }

    public void displayNotify() {
        model.loadNotify(new ICallback<NotifyEntity>() {
            @Override
            public void onLoadSuccess(NotifyEntity notifyEntity) {
                view.showNotify(notifyEntity);
            }

            @Override
            public void onLoadFailed(String err) {

            }
        });
    }

}
